package day9.generic;

/**
 * @author joker
 * @date 2022/4/19 0019 - 22:53
 */
public class Order<T extends Person> {
    private int age;
    private String name;
    private T t;

    public Order() {
    }

    public Order(int age, String name, T t) {
        this.age = age;
        this.name = name;
        this.t = t;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
    public void m(T t){
        System.out.println("m");
    }
    public <E> void m2(E e){}

    @Override
    public String toString() {
        return "Order{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", t=" + t +
                '}';
    }
}
